package com.es.hr.shopAdjust;

import java.util.ArrayList;
import java.util.HashMap;

import javax.servlet.http.HttpServletRequest;

import com.opensymphony.webwork.interceptor.ServletRequestAware;
import com.opensymphony.xwork.ActionSupport;

public class QueryEmpAdjustHistoryForPopAction  extends ActionSupport implements ServletRequestAware{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	HttpServletRequest request;
	 
	   public String execute()throws Exception
	   {
		   String emp_id = request.getParameter("emp_id")==null?(String)request.getAttribute("emp_id"):request.getParameter("emp_id");
		   if(emp_id==null||"".equals(emp_id)) return "error";
		   
		   ShopAdjustBiz manegeBiz = new ShopAdjustBiz();
		   ArrayList<HashMap<String,String>>map = manegeBiz.EmpAdjustHistoryForPop(emp_id);
		   request.setAttribute("mapList", map);
		   request.setAttribute("emp_id", emp_id);
		   return "success";
	   }
	
	   public void setServletRequest(HttpServletRequest request) {
		     this.request = request;
		   }
}